<!--添加界面引导 BY zmx-->
<div class="panel" data-position="top" data-intro="在这里查看你需要处理的审批事件">
    <div class="panel-heading">
    	审批列表
        <a href="{:U('Mission/index')}" class="pull-right">
            <i class="fa icon-angle-double-right" style="font-size:16px;"></i>
        </a>
    </div>
    <div class="panel-body">
        <div class="widget-container scrollable list task-widget padded">
            <!--<div class="heading"> <i class="icon-list"></i>审批事项
                <span class="pull-right"></span> 
            </div>-->
            <div class="widget-content text-muted">
              <ul>
                <?php $mdone=0;$mundone=0;$mrefuse=0;$mdoning=0;foreach($list as $v){ ?>
                    <li onClick="_openWindow('{:U('Mission/read', array('id' => $v['id']))}', 800, '{$v.title}(审批)', '确认', null, '')">
                      <label>
                      	 <i class="  fa icon-angle-right"></i>   
                         <?= $v['title'] ?>
                        <eq name="v['state']" value="0"> <div class="label pull-right label-danger">驳回</div> </eq>
                        <eq name="v['state']" value="1"> <div class="label pull-right label-warning">未开始</div> </eq>
                        <eq name="v['state']" value="-1"> <div class="label pull-right label-warning">未处理</div> </eq>
                        <eq name="v['state']" value="2"> <div class="label pull-right label-warning">进行中</div> </eq>
                        <eq name="v['state']" value="3"> <div class="label pull-right label-success">完成</div> </eq>
                        <span class="text-muted pull-right">申请人：
                        {: empty($v['proposername'])?'无':$v['proposername'] }
                        <?php switch($v['state']){
                                case 0:
                                    $mrefuse+=1;
                                break;
                                case 1:
                                    $mundone+=1;
                                break;
                                case 2:
                                    $mdoning+=1;
                                break;
                                case 3:
                                    $mdone+=1;
                                break;
                            } ?>&nbsp;&nbsp;
                        </span> 
                      </label>
                    </li>
                <?php } ?>
              </ul>
            </div>
        </div>
    </div>
</div>